package com.deuwise.system.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
/**
 * 
 *@author deuwise
 *@date 2018-11-06 14:15:04
 */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName("sys_role_menu")
public class SysRoleMenu extends Model<SysRoleMenu> implements Serializable{
    /**唯一主键*/
    @ApiModelProperty("唯一主键")
    @TableField("id")
    @TableId
    private String id;

    /**角色Id*/
    @ApiModelProperty("角色Id")
    @TableField("role_id")
    private String roleId;

    /**菜单id*/
    @ApiModelProperty("菜单id")
    @TableField("menu_id")
    private String menuId;

   @Override
    protected Serializable pkVal() {
        return id;
    }
}